package cn.edu.zafu.bigdata.x.zhouyuyan.work6;

import java.util.List;

public class Util<T extends Comparable<T>> {
    public T findMax(List<T> list){
        T max=list.get(0);
        for (int i = 0; i< list.size(); i++){
            if(max.compareTo(list.get(i))<0){
                max = list.get(i);
            }
        }
        return max;
    }
}

